package com.example.car.volley.request;

import org.json.JSONException;
import org.json.JSONObject;

public abstract class Request {
	private String Type;
	public Request(String type){
		Type=type;
	}
	public String getType(){
		return Type;
	}
	public JSONObject toJson(){
		JSONObject json=new JSONObject();
		try {
			json.put("type",Type);
			 System.out.println("JSON====="+json.toString());
			extentionObject(json);
		} catch (JSONException e) {
			e.printStackTrace();
		}
		
		
		return json;
		
	}
	
	public abstract void extentionObject(JSONObject json);
}
